<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <h:head>        
        <title>Sistema Notário</title>
        <link href="media/css/main.css" rel="stylesheet" type="text/css" />
        <link href="media/css/base.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="media/css/grid.css" />
        <link href="media/css/themeroller.css" rel="stylesheet" type="text/css" />
        <script src="media/js/jquery1.js" type="text/javascript"></script>
        <script src="media/js/jquery-ui1.js" type="text/javascript"></script>
        <script src="media/js/common1.js" type="text/javascript"></script>
        <script src="media/js/autoNumeric.js" type="text/javascript"></script>
        <script src="media/js/util.validate.js" type="text/javascript"></script>
        <script src="media/js/main.js" type="text/javascript"></script>
        <script src="media/js/pt-BR.js" type="text/javascript"></script>
        
        <style type="text/css">
            .ui-wizard{margin:0;padding:0;}.ui-wizard-content{margin:3px 0;}.ui-wizard-navbar{text-align:right;}.ui-wizard-nav-back, .ui-wizard-nav-next{cursor:pointer;}.ui-wizard-nav-back{float:left;}.ui-wizard-nav-next{float:right;}.ui-wizard-step-title{font-size:14px;margin:0 3px 0 0;padding:0.4em;float:left;}
        </style>
         
       
       
        
    </h:head>
    <h:body>

        <div id="container">

            <div id="header">

                <a href="/Cartorio-war/"><img src="media/img/logo_04.gif" name="logo" width="342" height="85" id="logo" hover="media/img/logo_hv_04.gif"  class="rollover"/></a>
                <div id="menu_wrapper">
                    <div id="top_left">                        
                        <div id="bottom_right">
                            <ul id="menu">
                                <li height="67">
                                    <a href="index.xhtml">
                                        <img src="media/img/INICIO_MENU.gif" width="65" height="16" class="menu_btn" hover="media/img/INICIO_MENU_VER.gif"/>
                                    </a>
                                    <img src="media/img/menu_13.gif" width="2" height="66" />
                                    <br />                                   
                                </li>
                                <li height="67" style="width:155px;margin-left: 0px ">
                                    <a href="indexProtocolo.xhtml">
                                        <img src="media/img/PROTOCOLO.gif" width="98" height="16" class="menu_btn" hover="media/img/PROTOCOLO_hover.gif" />
                                    </a>
                                    <img src="media/img/menu_13.gif" width="2" height="66" />
                                </li>                            

                                <li height="167" style="margin-left: 20px">
                                    <a href="indexSelo.xhtml">
                                        <img src="media/img/SELOS_MENU.gif" width="65" height="16" class="menu_btn" hover="media/img/SELOS_MENU_VER.gif"/>
                                    </a>
                                    <img src="media/img/menu_13.gif" width="2" height="66" />

                                    <h:form id="menuformSelo"  acceptcharset="utf-8">
                                        <p:commandLink value="Entrada" styleClass="menu_item" actionListener="#{managerLayout.testeRelatorio()}" update=":formcorpo" process="@this" immediate="true"/>
                                        <p:commandLink value="Saída" styleClass="menu_item" actionListener="#{managerLayout.addPage('selo_saida')}" update=":formcorpo" process="@this" immediate="true"/>
                                        <p:commandLink value="Fornecedor" styleClass="menu_item" actionListener="#{managerLayout.addPage('selo_forn')}" update=":formcorpo" process="@this" immediate="true"/>

                                    </h:form>

                                </li>                             

                                <li height="67">
                                    <a href="indexImovel.xhtml">
                                        <img src="media/img/IMOVEIS_MENU.gif" width="65" height="16" class="menu_btn" hover="media/img/IMOVEIS_MENU_VER.gif"/>
                                    </a>
                                    <img src="media/img/menu_13.gif" width="2" height="66" />
                                </li>
                                <li height="67">
                                    <a href="indexPessoa.xhtml">
                                        <img src="media/img/CLIENTE_MENU.gif" width="65" height="16" class="menu_btn" hover="media/img/CLIENTE_MENU_VER.gif"/>
                                    </a>
                                    <img src="media/img/menu_13.gif" width="2" height="66" />
                                </li>
                                 <li height="67"  style="width:155px;margin-left: 0px" >
                                    <a href="normas.xhtml">
                                        <img src="media/img/NORMAS.gif" width="68" height="16" class="menu_btn" hover="media/img/NORMAS_HOVER.gif"/>
                                    </a>
                                    <img src="media/img/menu_13.gif" width="2" height="66" />
                                </li>
                                
                                <li height="67"  style="width:155px;margin-left: -5px" >
                                    <a href="provimentos.xhtml">
                                        <img src="media/img/PROVIMENTO.gif" width="98" height="16" class="menu_btn" hover="media/img/PROVIMENTO_HOVER.gif"/>
                                    </a>
                                </li>
                                <!--                                <li height="170">
                                                                    <a href="#">
                                                                        <img src="media/img/CERTIDAO_MENU.gif" width="85" height="16" class="menu_btn" hover="media/img/CERTIDAO_MENU_VER.gif"/>
                                                                    </a>
                                                                    <img src="media/img/menu_13.gif" width="2" height="66" />
                                                                    <h:form id="menuformCertidao"  acceptcharset="utf-8">
                                                                        <p:commandLink value="Positiva" styleClass="menu_item" actionListener="#{managerLayout.addPage('certidao_positiva')}" update=":formcorpo" process="@this" immediate="true"/>
                                                                        <p:commandLink value="Negativa" styleClass="menu_item" actionListener="#{managerLayout.addPage('certidao_negativa')}" update=":formcorpo" process="@this" immediate="true"/>
                                                                    </h:form>
                                
                                                                </li>  -->
                            </ul>
                        </div>
                    </div>
                </div>
                <h:form  acceptcharset="utf-8"> 
                    <div id="top_bar">
                        <a href="#" >Olá #{request.getUserPrincipal().getName()}</a> | 
                        <a href="http://mail.google.com/" target="_blank" style="vertical-align:top;">
                            <img src="media/img/mail/mail2.png"  title="NotárioMail" />
                        </a>| 
                        <a href="config.xhtml">Configurações</a>  | 
                        <p:commandLink value="Sair" action="#{managerLayout.logout}" update="@all" immediate="false" ajax="false"/> 
                    </div>
                    <div id="top_bar_email">
                        <h:outputText id="notifEmail" value="#{notarioMail.msg eq '0' ? '': notarioMail.msg}"/>
                    </div>
<!--                    <p:poll interval="10" listener="{notarioMail.init()}" update="notifEmail" />-->
                </h:form>
            </div>
            <div id="mainContent">
                <div id="top_left">
                    <div id="bottom_right">
                        <h:form id="formcorpo" acceptcharset="utf-8">
                        </h:form>
                        <ui:insert name="corpo">

                        </ui:insert>
                    </div>
                </div>
            </div>
            <div id="footer">
                <p>Notário: Automação de Cartórios - Todos os direitos reservados Deployment technologies.</p>

            </div>
        </div>

    </h:body>
</html>
